2020-2021 Sunseeker Telemetry and Lighting System
crc32_ex1_calculateCrc16.c File Reference
#include "driverlib.h"

Go to the source code of this file.

Macros

#define CRC16_POLY   0x1021
 
#define CRC16_INIT   0xFFFF
 

Functions

int main (void)
 

Macro Definition Documentation

◆ CRC16_INIT

#define CRC16_INIT   0xFFFF

Definition at line 62 of file crc32_ex1_calculateCrc16.c.

◆ CRC16_POLY

#define CRC16_POLY   0x1021

CRC - Calculate CRC and check result

Breakpoints can be set at __no_operation()to compare hardware and software generated CRC values.

Tested On: MSP430FR6989

/ |
RST

| | | |

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • CRC peripheral
  • GPIO Port peripheral

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • NONE

Definition at line 61 of file crc32_ex1_calculateCrc16.c.

Function Documentation

◆ main()

int main ( void  )

Definition at line 67 of file crc32_ex1_calculateCrc16.c.

References CRC16_INIT.